package com.ben.xinyue.seckill.domain.vo;

import com.ben.xinyue.seckill.validator.IsMobile;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: LoginVo
 * @Description: 登陆
 * @author: xinyue
 * @date: 2020/9/2 10:40 下午
 * @version: 1.0.0
 */
@Getter
@Setter
@Accessors
public class LoginVo {

    @NotNull(message = "手机号不能为空")
    @IsMobile
    private String mobile;

    @NotBlank(message = "密码不能为空")
    @Length(min = 32)
    private String password;

}
